$OpenBSD: patch-libraries_Cabal_Cabal_Distribution_InstalledPackageInfo_hs,v 1.2 2014/11/22 20:23:23 kili Exp $
--- libraries/Cabal/Cabal/Distribution/InstalledPackageInfo.hs.orig	Thu Jul 10 06:34:21 2014
+++ libraries/Cabal/Cabal/Distribution/InstalledPackageInfo.hs	Sun Nov  2 21:50:32 2014
@@ -105,6 +105,7 @@ data InstalledPackageInfo_ m
         description       :: String,
         category          :: String,
         -- these parts are required by an installed package only:
+        pkgpath           :: String,
         exposed           :: Bool,
         exposedModules    :: [m],
         hiddenModules     :: [m],
@@ -147,6 +148,7 @@ emptyInstalledPackageInfo
         synopsis          = "",
         description       = "",
         category          = "",
+        pkgpath           = "",
         exposed           = False,
         exposedModules    = [],
         hiddenModules     = [],
@@ -241,7 +243,10 @@ basicFieldDescrs =
 
 installedFieldDescrs :: [FieldDescr InstalledPackageInfo]
 installedFieldDescrs = [
-   boolField "exposed"
+   simpleField "pkgpath"
+        showFreeText       parseFreeText
+        pkgpath            (\val pkg -> pkg{pkgpath=val})
+ , boolField "exposed"
         exposed            (\val pkg -> pkg{exposed=val})
  , listField   "exposed-modules"
         disp               parseModuleNameQ
